import { apiPrefix } from '@/consts/consts'

export default ({ $service:request }) => ({
  // 7.1 展厅设备注册
  deviceRegister(params) {
    return request({
      url: `${apiPrefix}/api/v1/exhibition/device/register`,
      method: 'get',
      params
    })
  },

  // 7.2 上报展厅设备信息
  deviceInfo(data) {
    return request({
      url: `${apiPrefix}/api/v1/exhibition/device/info`,
      method: 'post',
      data
    })
  },

  // 7.3、获取当前机构所有应用和资源列表
  appRes(params) {
    return request({
      url: `${apiPrefix}/api/v1/exhibition/app/res`,
      method: 'get',
      params
    })
  },

  // 7.4 获取展厅和设备端程序列表
  deviceProgram(data) {
    return request({
      url: `${apiPrefix}/api/v1/exhibition/device/program`,
      method: 'post',
      data
    })
  },
})
